package com.guoguo.enums;

import com.guoguo.base.PageBean;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Administrator on 2017/8/15 0015.
 */
public enum UsersEnum {
    LOGIN_SUCCESS(200, "登录成功！"),
    LOGIN_ERROR(201, "用户名或者密码出错！"),
    LOGIN_USER_ERROR(202, "用户名不能为空！"),
    LOGIN_PWD_ERROR(202, "密码不能为空！"),
    LOGIN_NOT_USER(210, "用户不存在！"),
    LOGIN_EXITS_USER(206, "用户名已存在！"),


    REGISTER_ERROR(206, "手机号已存在，注册失败"),
    REGISTER_PHONE_ERROR(201, "手机号格式错误"),
    REGISTER_PHONE_EXITS(210, "用户不存在"),
    REGISTER_SUCCESS(200, "注册成功"),
    SMS_SEND_SUCCESS(200, "验证码发送成功！"),
    REGISTER_VALICODE_EXPIRED(100, "验证码已过期，请重新发送！"),
    REGISTER_VALICODE_ERROR(201, "验证码错误，请重新填写！"),
    UPDATEUSERPWD_SUCCESS(200, "密码找回成功"),


    TOKEN_ERROR(100, "token不存在或者已失效！"),
    TOKEN_NULL_ERROR(101, "用户没有登录或登录信息失效，请重新登录！"),
    TOKEN_NULL(201, "参数错误，请确认参数的正确性！"),
    MAC_NULL(202, "Mac不能为空"),

    AUTHORITY_VALIDATE_ERROR(110, "权限验证失败，用户没有此权限！"),
    AUTHORITY_VALIDATE_URL_ILLEGAL(111, "非法请求，请确认URL后重新请求！"),

    COMMENT_SUCCESS(200, "评论成功！"),
    COMMENT_ERROR(202, "评论内容不能为空！"),
    COLLECT_IMAGE_UP(200, "图片收藏成功！"),
    COLLECT_ALBUM_UP(200, "专辑收藏成功！"),
    COLLECT_ERROR(201, "已收藏！"),
    COLLECT_ARGS_ERROR(202, "查询失败，请重新确认参数！"),
    SHARE_ALBUM_UP(200, "专辑分享成功！"),
    SHARE_IMAGE_UP(200, "图片分享成功！"),
    COLLECT_IMAGE_CANCLE(200, "取消收藏图片成功！"),
    COLLECT_ALBUM_CANCLE(200, "取消收藏专辑成功！"),
    COMMENT_UP(200, "点赞成功！"),
    ATTENTION_SUCCESS(200, "关注成功！"),
    ATTENTION_REPEAT_ERROR(201, "你已经关注过,不能重复关注！"),
    ATTENTION_DB_ERROR(202, "关注失败，数据处理失败！"),
    ATTENTION_ERROR(206, "关注失败！"),
    ATTENTION_CANCLE_SUCCESS(200, "取消关注成功！"),
    ATTENTION_CANCLE_ERROR(206, "取消关注失败！"),
    PAGE_PARAM_ERROR(102, "分页参数错误！"),
    PAGE_PARAM_(105, "当前页数不能大于总页数！"),
    UPLOAD_SUCCESS(200,"文件上传成功"),
    UPLOAD_ERROE(202,"文件上传失败"),
    error(10000, "error");


    private int id;
    private String value;


    UsersEnum(int id, String value) {
        this.id = id;
        this.value = value;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
